<?
$s = inc_incfile("project/setup.php");

echo "<p><a href=\"new/new.php\">Add a {$s["title"]}</a></p>";

global $user;

global $db;
$uid = $db->sqlint($user["id"]);
inc_incfile("list3.php",array(
	"db"=>&$db,
	"fields"=>$s["fields"],
	"where"=>"users_id = $uid",
/*	"search"=>array("node_id","title"),
	"cols"=>array("node_id","title"),*/
        "search"=>array("title"),
        "cols"=>array("title"),
	"orderby"=>"title",
	"orderdir"=>"asc",
	"table"=>$s["table"],
	"actions"=>array(
		"view"=>"%%/view.php",
		"edit"=>"%%/edit.php",
		#"import"=>"%%/import.php",
		#"delete"=>"%%/delete.php",
		
		"releases"=>"%%/releases/index.php",
		"new release"=>"%%/releases/new/new.php",
		#"overview"=>"%%/index.php",
		
		/*
		"newss"=>"%%/newss/index.php?search=1",
		"links"=>"%%/links/index.php?search=1",
		"documents"=>"%%/documents/index.php?search=1",
		
		"modules"=>"%%/modules/index.php?search=1",
		"tasks"=>"%%/tasks/index.php?search=1",
		
		#"tests"=>"%%/tests/index.php?search=1",
		"bugs"=>"%%/bugs/index.php?search=1",
		"changes"=>"%%/changes/index.php?search=1",
		"supports"=>"%%/supports/index.php?search=1",
		#"risks"=>"%%/risks/index.php?search=1",
		*/
		),
	));
?>
